package com.cskaoyan.utils;

/**
 * 类<code>Doc</code>用于：TODO 字符串工具类
 *
 * @author Acher
 * @version 1.0
 * @date 2021-10-19
 */
public class StringUtils {

    public static boolean isEmpty(String value) {
        return value == null || "".equals(value.trim());
    }

    public static String[] string2StringArrays(String s) {
        String replace = s.replace("[", "").replace("]", "");
        String[] split = replace.split(",");
        if (replace.isEmpty()){
            return new String[0];
        }
        return split;
    }
}
